package repository

import (
	"gluenet/internal/glue-srvp/adapter/repository/etcd"
	"gluenet/internal/glue-srvp/adapter/repository/helm"
	"gluenet/internal/glue-srvp/adapter/repository/mysql"
)

func Install() error {
	if err := etcd.Install(); err != nil {
		return err
	}
	if err := mysql.Install(); err != nil {
		return err
	}
	if err := helm.Install(); err != nil {
		return err
	}
	return nil
}

func InstallForTest() error {
	if err := etcd.Install(); err != nil {
		return err
	}
	if err := mysql.Install(); err != nil {
		return err
	}
	//if err := helm.Install(); err != nil {
	//	return err
	//}
	return nil
}
